﻿$(document).ready(function () {

    $("#list").jqGrid({
        height: 300,
        width: 1200,
        url: '/LicenseServer/GetInstalledLicensesData/',
        datatype: 'json',
        mtype: 'POST',
        colNames: ['Id', 'Customer', 'License', 'Type' ,'Product', 'Feature', 'Limit', 'Exhausted'],
        colModel: [
          { name: 'Id', index: 'Id', sortable: false, hidden: true },
          { name: 'Customer', sortable: false },
          { name: 'License', sortable: false },
          { name: 'Type', sortable: false },
          { name: 'Product', sortable: false },
          { name: 'Feature', sortable: false },          
          { name: 'Limit', index: 'Id', sortable: false },          
          { name: 'Exhausted', sortable: false },          
          ],
        pager: jQuery('#pager'),
        rowNum: 10,
        rowList: [10, 50],
        sortname: 'name',
        sortorder: "asc",
        viewrecords: true,
        imgpath: '/Content/Themes/Base/images',
        caption: 'Licenses installed on this server',
    });
}); 